//
//  UIImage+JM.m
//  OpenSesame
//
//  Created by zhangjiaming on 16/1/31.
//  Copyright © 2016年 OpenSesame. All rights reserved.
//

#import "UIImage+JM.h"

@implementation UIImage (JM)
+ (UIImage *)scaleImage:(UIImage *)image toScale:(float)scaleSize
{
    UIGraphicsBeginImageContext(CGSizeMake(180,180));
    [image drawInRect:CGRectMake(0, 0, image.size.width * scaleSize, image.size.height *scaleSize)];
    UIImage *scaledImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    return scaledImage;
}
@end
